import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './theme/index.less'
import Antd from 'ant-design-vue'

import store from './store'
import 'animate.css/source/animate.css'
import Plugins from '@/plugins'
import { initI18n } from '@/utils/i18n'
// import bootstrap from '@/bootstrap'

// 图片查看
import 'viewerjs/dist/viewer.css'
import Viewer from 'v-viewer'

// 富文本 引入样式
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import VueQuillEditor from 'vue-quill-editor'

// markdown
import 'mavon-editor/dist/css/index.css'
import mavonEditor from 'mavon-editor'

import VCharts from 'v-charts'

import Dict from './mixins/Dict' // global Dict mixins
import '@/permission' // permission control

// const router = initRouter(store.state.setting.asyncRoutes)
const i18n = initI18n('CN', 'US')

Vue.use(Antd)
Vue.use(Plugins)
Vue.use(Viewer)
Vue.use(VueQuillEditor)
Vue.use(mavonEditor)
Vue.use(VCharts)
Vue.use(Dict)

// bootstrap({router, store, i18n, message: Vue.prototype.$message})
Vue.config.productionTip = false

new Vue({
  router,
  store,
  i18n,
  render: (h) => h(App)
}).$mount('#app')
